package com.jkoss.wine.warehouse.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 入库单
 * 
 * @Author Jason
 * @Version 1.0, 2018-11-29
 * @See
 * @Since com.jkoss.wine.warehouse.entity
 * @Description: TODO
 */
@TableName("ware_in_order")
public class WareInOrder extends Model<WareInOrder> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 订单编号
	 */
	@Excel(name = "订单编号", orderNum = "0", width = 30)
	@TableField("onum")
	private String onum;
	/**
	 * 订单金额
	 */
	@Excel(name = "订单金额", orderNum = "1", width = 30)
	@TableField("opcs")
	private Integer opcs;
	/**
	 * 订单类型：1-采购入库、2-其他入库、3-盈亏入库
	 */
	@Excel(name = "订单类型", orderNum = "3", replace = { "采购入库_1", "其他入库_2", "盈亏入库_3" }, width = 30)
	@TableField("type")
	private Integer type;
	/**
	 * 订单时间
	 */
	@Excel(name = "订单时间", orderNum = "4", format = "yyyy-MM-dd", width = 30)
	@TableField("odtm")
	private Date odtm;
	/**
	 * 供应商
	 */
	@Excel(name = "供应商", orderNum = "2", width = 30)
	@TableField("supplier")
	private String supplier;
	/**
	 * 制单人
	 */
	@TableField("sgps")
	private String sgps;
	/**
	 * 备注
	 */
	@TableField("remk")
	private String remk;
	/**
	 * 添加时间
	 */
	@TableField("add_time")
	private Date addTime;
	/**
	 * 操作人
	 */
	@TableField("operator")
	private String operator;
	/**
	 * 是否删除 0否1是
	 */
	@TableField("del")
	private Integer del;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOnum() {
		return onum;
	}

	public void setOnum(String onum) {
		this.onum = onum;
	}

	public Integer getOpcs() {
		return opcs;
	}

	public void setOpcs(Integer opcs) {
		this.opcs = opcs;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getOdtm() {
		return odtm;
	}

	public void setOdtm(Date odtm) {
		this.odtm = odtm;
	}

	public String getSupplier() {
		return supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	public String getSgps() {
		return sgps;
	}

	public void setSgps(String sgps) {
		this.sgps = sgps;
	}

	public String getRemk() {
		return remk;
	}

	public void setRemk(String remk) {
		this.remk = remk;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WareInOrder{" + ", id=" + id + ", onum=" + onum + ", opcs=" + opcs + ", type=" + type + ", odtm=" + odtm + ", supplier=" + supplier + ", sgps=" + sgps + ", remk=" + remk + ", addTime=" + addTime + ", operator=" + operator + ", del=" + del + "}";
	}
}
